package com.twu.biblioteca;

/**
 * Created by Rob on 17/09/2014.
 */
public class Movie {
    private String name;
    private String director;
    private int yearOfRelease;
    private int movieRating;
    public Movie(String inputTheName, String inputDirector, int inputYearOfRelease, int inputRating){
        name = inputTheName;
        director = inputDirector;
        yearOfRelease = inputYearOfRelease;
        movieRating = inputRating;
    }

    public String getName(){
        return name;
    }

    public String getDirector(){
        return director;
    }

    public int getYearOfRelease(){
        return yearOfRelease;
    }

    public int getMovieRating(){
        return movieRating;
    }

    public String toString(){
        return String.format("%40s", name) + " " + String.format("%20s", director) + String.format("%20s", yearOfRelease) + String.format("%27s", movieRating);
    }
}
